home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-11 | 1.4 KB | 33 lines | [TEXT/GEOL] |
- Item 2874592 7-May-90 15:45PDT
-
- From: LMILLETT Millett, Lonnie
-
- To: N0917 E I DuPont, Simon Edkins,ASC,NAT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: AddResource Problem
-
- When MacApp saves a document with the DoWrite method, it actually is saving via
- a temporary copy of the file rather than saving it in place. This is to
- protect you from losing your original document should some error occur in
- writing. When you called AddResource in your DoWrite method what you ended up
- with was a new document with a single resource in it. Since the write was
- successful, the old document was deleted, along with all of your resources and
- data, and the new document with the single resource became the current
- document. You can indicate to MacApp that you would like to save a document in
- place with the fSaveInPlace field of TDocument. However this will only be used
- if MacApp determines that there isn't enough space to save your document via a
- copy.
-
- Unfortunately your first guess at the solution is the correct one. You will
- need to write out your data fork and copy all existing resources for them to
- appear in your new document. If that isn't possible, you can do a save in
- place, but you will need to override the behavior of a number of methods, in
- particular Save, SaveInPlace, and MakeNewCopy.
-
- Lonnie Millett
- MacApp engineering
- Apple Computer Inc.
-
-